<?php
$v_staff_id = $_SESSION['staff_id'];		// id cua NSD
$v_recordtype_filter = $_SESSION['onegate_current_recordtype'];		// loai thu tuc
if(_is_sqlserver())
{

	$sql = "Exec ONEGATE_GetAllWorkType  ";
	$ado_conn->SetFetchMode(ADODB_FETCH_NUMBER);
	$arr_list = $ado_conn->GetAll($sql);
	$v_cout = sizeof($arr_list);
	//var_dump($arr_list);

	$sql = "Exec Onegate_ListSpecWorkType ";
	$sql .= "'".$v_staff_id."'";
	$sql .= ",'".$v_recordtype_filter."'";
	//echo $sql;
	$ado_conn->SetFetchMode(ADODB_FETCH_ASSOC);
	$arr_all_spec_worktype = $ado_conn->GetAll($sql);
	$v_count_spec_worktype = sizeof($arr_all_spec_worktype );
	//var_dump($arr_all_spec_worktype);
}

?>